package com.oracle.team.domain;

public class PC implements Equipment {
	//属性
	private String model;
	private String display;	
	
	//构造方法
	public PC(String model, String display) {
		//super();
		this.model = model;
		this.display = display;
	}	
	
	//普通成员方法	
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getDisplay() {
		return display;
	}

	public void setDisplay(String display) {
		this.display = display;
	}

	//覆盖重写方法
	//@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		//补充方法
		String info = model + "(" + display + ")";
		
		return info;
	}
	
//	public static void main(String[] args) {
//		PC pc1 = new PC("戴尔", "NEC17寸");
//		System.out.println(pc1.getDescription());
//	}

}
